package chapter8;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author lzy
 * @create 2018-03-19 下午4:53
 */
public enum Color implements IMessage{
    RED("红"), GREEN("绿"), BLUE("蓝");
    private String title;

    private Color(String name) {
        this.title = name;
    }

    @Override
    public String getTitle() {
        return this.title;
    }

    @Override
    public String toString() {
        return "Color{" +
                "title='" + title + '\'' +
                '}';
    }
}
